import 'jsmind/style/jsmind.css'
import jsMind from 'jsmind/js/jsmind.js'
import { createApp } from 'vue'
import App from './App.vue'
import { createRouter,createWebHashHistory } from 'vue-router'
import spreadJs from './components/spreadJs/spreadJs.vue'
import spreadMock from './components/spreadJs/spreadMock.vue'
import jsMindCom from './components/jsmind/jsmind.vue'
import TreeOrg from './components/d3/treeOrg.vue'
import TreeOrgBack from './components/d3/treeOrg-back.vue'
// // 导入element-plus
// import ElementPlus from 'element-plus'
 import 'element-plus/theme-chalk/index.css';

 
 require('./mock')
window.jsMind=jsMind

require('jsmind/js/jsmind.draggable-node.js')
const routes = [
    { path: '/spreadJs', component: spreadJs },
    { path: '/jsMind', component: jsMindCom },
    { path: '/spreadMock', component: spreadMock },
    { path: '/D3', component: TreeOrg},
    { path: '/D3Back', component: TreeOrgBack},
]
 
// 3. 创建路由实例并传递 `routes` 配置。
const router = createRouter({
    // 内部提供了 history 模式的实现。为了简单起见，我们在这里使用 hash 模式。
    history: createWebHashHistory(),
    routes, // `routes: routes` 的缩写

})
 
//createApp(App).use(ElementPlus).mount('#app')
createApp(App).use(router).mount('#app')
